const FETCHTYPEMAP = {
  1: "Img",
};

module.exports = async (page, { type }, callback) => {
  await page.setRequestInterception(true);

  page.on("request", async (req) => {
    await req.continue();
  });

  page.on("response", async (res) => {
    // res.text();
    // res.url();
    // const response = await res.text();
    console.log(res.url());
    callback && callback();
  });
};
